package com.app.service;

import com.app.model.GoodsSpecsModel;
import com.app.vo.GoodsSpecsVo;
import com.baomidou.mybatisplus.extension.service.IService;
import org.springframework.transaction.annotation.Transactional;

/**
 * 商品规格
 * @author 16693103420
 * @since 2024-01-25
 */
public interface GoodsSpecsService extends IService<GoodsSpecsModel> {
    //商品规格信息查询
    GoodsSpecsVo getGoodsSpecsList(Integer page,Integer limit,Integer goodsId);
    //立即兑换
    @Transactional(rollbackFor = Exception.class)
    String exchangeGoods(GoodsSpecsModel goodsSpecsModel,Integer userId);

}
